from PIL import Image
from PyCmpltrtok.common import *
import numpy as np

img_path = '/var/asuspei/large_data/pic/dog_bird.jpg'
with Image.open(img_path) as f:
    print(type(f))
    f.show()
    img = np.asarray(f).astype('uint8')
    check_np(img, 'img')
